<%@ page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<a href="/">BookR</a> |
status: <spring:message code="${status}"/> |
Lang: ${pageContext.response.locale} |
<c:choose>
    <c:when test="${!empty pageContext.request.remoteUser}">
        <b>${pageContext.request.remoteUser}</b> [<a href="/logout">wyloguj</a>]
    </c:when>
    <c:otherwise>
        <form action="/j_spring_security_check" method="post" style="float:none; display: inline;">
            username:<input type="text" name="j_username" size="10"/>
            password:<input type="password" name="j_password" size="10"/>
            <button type="submit" style="visibility: hidden;"/>
        </form>
    </c:otherwise>
</c:choose>


<%--<% if(pageContext.request!=null) {  %>--%>
    <%--nie jest null--%>
<%--<% } else { %>--%>
    <%--jest null--%>
<%--<% } %>--%>
